import { GlobalStyle } from  './style';
import { IconStyle } from './assets/iconfont/iconfont';
import routes  from './routes';
import { HashRouter } from 'react-router-dom';
import { renderRoutes } from 'react-router-config';//renderRoutes 读取路由配置转化为 Route 标签
import { Provider } from 'react-redux';
import  store  from './store';


function App() {
  return (
      <Provider store={store}>
          <HashRouter>
              <GlobalStyle />
              <IconStyle />
              {
                  renderRoutes(routes)
              }
          </HashRouter>
      </Provider>

  );
}

export default App;
